package com.caseProcess.controller;

import com.caseProcess.entity.Result;
import com.caseProcess.entity.VRoleSystemModel;
import com.caseProcess.service.VRoleSystemModelService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/vRoleSystemModel")
public class VRoleSystemModelController {
    @Resource
    private VRoleSystemModelService vRoleSystemModelService;

    @RequestMapping("/getVRoleSystemModels")
    public Result getVRoleSystemModels() {
        Result result=new Result();
        List<VRoleSystemModel> list=new ArrayList<VRoleSystemModel>();
        VRoleSystemModel vRoleSystemModel=new VRoleSystemModel();
        list=vRoleSystemModelService.selectVRoleSystemModels(vRoleSystemModel);
        result.setData(list);
        return result;
    }
}
